package com.peter.cases.communication;

import java.io.IOException;
import java.net.ServerSocket;

import org.springframework.boot.SpringApplication;
import org.springframework.stereotype.Component;

import com.peter.cases.kafka.KafkaApplication;

import lombok.extern.slf4j.Slf4j;


@Slf4j
@Component
public class LiUncle {
    private int port = 9999;

    public void monitor(String[] args) throws IOException {
        ServerSocket ssc = new ServerSocket(port);
        log.info(">>> 开始监控 %s", port);
    }

    public static void main(String[] args) {
        try {
            new LiUncle().monitor(null);
        } catch (IOException e) {
            e.printStackTrace();
        }
    }

}
